import java.util.Scanner;
public class ShowName{
public static void main(String [] args)
{ 
String name;
Scanner st = new Scanner(System.in);
System.out.print("input string : ");
name = st.nextLine();
System.out.print("output string : ");
for(int i=name.length()-1;i>-1;i--)
{
System.out.print(name.charAt(i));}
}
}